package tjs.org.springLoader.config;

import org.springframework.boot.context.properties.ConfigurationProperties;

import java.io.File;

@ConfigurationProperties(prefix = "org.autoReloader")
public class AutoReloaderProperties {
    public static final String defaultWorkSpace = new File("").getAbsolutePath() + "/target/classes/";

    private Boolean autoReset;

    /**
     * class文件的绝对路径
     * 默认监听： xxx/target/classes
     */
    private String[] classPathes = new String[]{defaultWorkSpace};

    public Boolean getAutoReset() {
        return autoReset;
    }

    public void setAutoReset(Boolean autoReset) {
        this.autoReset = autoReset;
    }

    public String[] getClassPathes() {
        return classPathes;
    }

    public void setClassPathes(String[] classPathes) {
        this.classPathes = classPathes;
    }
}